import request from '@/utils/request';
export const getChannelsApi = () => {
  return request({ url: '/v1_0/channels' });
};
//获取用户频道
export const getUserChannelsApi = () => {
  return request({ url: '/v1_0/user/channels' });
};
//添加关注
export const addUserChannelsApi = (newChannels: { id: number }) => {
  return request({ url: '/v1_0/user/channels', method: 'patch', data: { channels: [newChannels] } });
};
//取消关注
export const delUserChannelsApi = (id: number) => {
  return request({ url: '/v1_0/user/channels/' + id, method: 'delete' });
};
